package com.hongdee.crm.average.service;

import com.hongdee.crm.average.entity.TCrmAverageCarEntity;
import com.hongdee.crm.average.entity.TCrmAverageEntity;

import java.util.Map;

/**
 * Created by dell on 2017/6/2.
 */
public interface ITCrmIAverageCarService {
    /**
     * @paramuid      登录用户 ID
     * @param tCrmAverageCarEntity 实体
     * @return tCrmAverageEntity
     * @throws Exception
     * @desc 新增与更改 保存数据
     * @author 于扬
     */
    public TCrmAverageCarEntity saveOrUpdate(TCrmAverageCarEntity tCrmAverageCarEntity) throws Exception;

    /**
     * @param id    用户 ID
     * @return tCrmAverageEntity
     * @throws Exception
     * @desc 按条件查询
     * @author 于扬
     */

    public Map info(String id) throws Exception;

    /**
     * @paramuid      登录用户 ID
     * @param start
     * @param limit
     * @return tCrmAverageEntity
     * @throws Exception
     * @desc 分页查询
     * @author 于扬
     */

    public Map newPage(String start, String limit,String year) throws Exception;
    public void update(String id, String status) throws Exception;
}
